﻿using Accord.Video.VFW;
using System;
using System.Windows.Forms;

namespace BoilingWater
{
    public partial class player : Form
    {
        AVIFileVideoSource source;
        string videoFilePath;
        public player(string videoFilePath)
        {
            this.videoFilePath = videoFilePath;
            InitializeComponent();
        }

        private void player_Load(object sender, EventArgs e)
        {
            source = new AVIFileVideoSource(videoFilePath);
            source.Start();
            videoSourcePlayer.VideoSource = source;
            videoSourcePlayer.Start();
        }
    }
}
